package com.cancan.demo.apidebouncing.response;

import lombok.Data;

import java.io.Serializable;

/**
 * 结果处理类
 * @author czchen
 * @version 1.0
 * @date 2020/6/20 19:20
 */
@Data
public class Result implements Serializable {

    private static final long serialVersionUID = 4902844175104590617L;

    private int code = 0;

    private String msg = "OK";

    private Object data;

    public Result() {
    }

    public Result(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Result(int code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }
}
